﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- saved from url=(0014)about:internet -->
<head>
    <title>Microsoft Silverlight Deep Zoom</title>
    <style type="text/css">
        html, body
        {
            height: 100%;
            overflow: auto;
            font-family: Verdana;
            color: #111111;
            overflow: hidden;
        }
        body
        {
            padding: 0;
            margin-top: 0;
            border: 0;
            border-width: 0px;
            margin-bottom: 0;
        }
        #silverlightControlHost
        {
            height: 99%;
        }
        #container
        {
            background-color: #0a0a0a;
        }
        a
        {
            font-family: Verdana;
            font-size: small;
            text-decoration: none;
            line-height: 24px;
            color: #1111a0;
        }
        .style1
        {
            color: #1F4D72;
        }
        .style2
        {
            font-size: large;
            background-color: #F0F0F0;
        }
        .style3
        {
            font-size: small;
        }
        .style4
        {
            background-color: #F0F0F0;
        }
        body
        {
            background-color: #000;
            color: #ccc;
            margin: 0;
            padding: 0;
            text-align: center;
            font: 12px/1.4 trebuchet,arial,verdana,sans-serif;
        }
        #mainContent
        {
        }
        img
        {
            display: block;
            border-width: 0px;
            border-style: none;
        }
        h1
        {
            font-size: 260%;
            color: #ccc;
            font-weight: normal;
            font-family: georgia,times,serif;
            margin: 20px 0 10px 0;
        }
        h2
        {
            font-size: 160%;
            color: #ccc;
            font-weight: normal;
            font-family: georgia,times,serif;
            margin: 0;
        }
        h3
        {
            font-size: 140%;
            color: #ccc;
            font-weight: normal;
            font-family: georgia,times,serif;
            margin: 0;
        }
        p
        {
            margin: 0;
        }
        .downloadBtn a
        {
            width: 293px;
            height: 59px;
            text-indent: -9000px;
            background: transparent url("download_silverlight.gif") no-repeat;
            display: block;
            margin: 15px 0 25px 0;
        }
        a, a:link, a:visited, a:hover, a:active
        {
            text-decoration: none;
            border-width: 0px;
            border-style: none;
        }
        .grey
        {
            color: #666;
        }
    </style>

    <script type="text/javascript" src="Silverlight.js"></script>

    <script type="text/javascript">
        function onSilverlightError(sender, args) {

            var appSource = "";
            if (sender != null && sender != 0) {
                appSource = sender.getHost().Source;
            }
            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;

            var errMsg = "Unhandled Error in Silverlight 2 Application " + appSource + "\n";

            errMsg += "Code: " + iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";

            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " + args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }

            throw new Error(errMsg);
        }
    </script>

</head>
<body style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;
    width: 100%; height: 100%;">
    <div style="height: 100%; width: 100%">
        <div style="height: 5%; position: relative;">
            This is an ad: <span id="someAdNumber"></span>
        </div>
        <div style="width: 100%; height:95%; position: relative;">
            <object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
                width="100%" height="100%" id="slobject">
                <param name="source" value="ClientBin/eventr.xap" />
                <param name="onerror" value="onSilverlightError" />
                <param name="background" value="black" />
                <param name="minRuntimeVersion" value="3.0.40624.0" />
                <param name="Windowless" value="true" />
                <param name="autoUpgrade" value="true" />
                <param name="EnableRedrawRegions" value="false" />                
                <div id="mainContent">
                    <div id="top" style="height: 123px; width: 100%; background-color: #031424">
                        <a href="http://go.microsoft.com/fwlink/?LinkID=124807">
                            <img src="top.jpg" /></a>
                    </div>
                    <div id="bottom" style="background-color: Black; text-align: center">
                        <img src="bottom.jpg" />
                    </div>
                </div>
            </object>
            <iframe id="iddendiv" name="iddendiv" style='visibility: hidden; height: 0; width: 0;
                border: 0px'></iframe>
            <div id="slice" style="visibility: hidden; z-index: 2; position: absolute; left: 15px;
                top: 15px">
                <div id="mardislice" class="hslice" style="visibility: hidden; display: none">
                    <div class="entry-title" style="visibility: hidden; display: none">
                        Test Web Slice</div>
                    <a rel="entry-content" href="iframe.html" style="display: none;"></a>                    
            </div>
            
          
            
        </div>
    </div>
      <div style="position:absolute;top:0;left:0;width:100%;height:100%;color:White;display:none;" id="sliceConfirmOuter">
                <div style="position:absolute;height:350px;width:350px;margin-left:auto;margin-right:auto;" id="sliceConfirmInner">
                    <img src="ieslicebackground.png" style="position:absolute;top:0;left:0;"/>
                    <div style="position:absolute;left:30px;top:100px;width:290px;color:Black;">
                        <p>
                            To install the Slice, please click the confirmation button below:           
                        </p>
                        <p style="margin-top:35px;">
                            <input value="Install Slice" onclick="createIE8Slice()" type='button'/>    
                            <input value="Cancel" onclick="hidemetheslice()" type='button'/>    
                        </p>      
                    </div>
                </div>
            </div>

    <script language="javascript" type="text/javascript">       

        function hidemetheslice() {

            var outer = document.getElementById("sliceConfirmOuter");

            outer.style.display = "none";            
        }

        function showIE8SlicePopup() {
            var outer = document.getElementById("sliceConfirmOuter");

            outer.style.display = "block";
            
            var inner = document.getElementById("sliceConfirmInner");
            outer.style.height = document.body.offsetHeight;
            inner.style.top = (outer.offsetHeight / 2) - inner.offsetHeight/2;
            inner.style.left = (outer.offsetWidth / 2) - inner.offsetWidth/2;            
        }

        function createIE8Slice() {
            
            if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { //test for MSIE x.x;
                var ieversion = new Number(RegExp.$1) // capture x.x portion and store as a number
                if (ieversion >= 7) {

                    var sURI = window.location.href;
                    
                    window.external.addToFavoritesBar(sURI + "#mardislice", "Test Web Slice", "slice");
                    hidemetheslice();
                    return;
                }

            }
        }

         //
        function someAdRotator(id) {
            document.getElementById("someAdNumber").innerHTML = id;
        }
        
    </script>   

</body>
</html>
